from django.conf import settings
from django.core.management.base import BaseCommand

from agent.gtalk_agent import infocarretera_gtalk_bot


class Command(BaseCommand):
    help = "Script para hacer auto follow a los usuarios que nos siguen en twitter"
    
    requires_model_validation = True
    
    def handle(self, *app_labels, **options):
        bot = infocarretera_gtalk_bot()
        bot.start(settings.GTALK_USERNAME, settings.GTALK_PASSWORD)